/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: User.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/22 下午6:37
 * LastModified: 2020/03/22 18:37:22
 */

package com.qolome.knowledge.design.pattern.mediator.chatroom;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Qolome
 * @version V1.0
 * @Description 用户
 * @date 2020年 03月22日 18:37:48
 */
@Data
@Slf4j
@AllArgsConstructor
public class User {
    private ChatRoom chatRoom;
    private String name;

    public void sendMsg(String msg){
        this.chatRoom.showMsg(this,msg);
    }

}
